import request from '@/utils/request'
// 查询

export function getcaigouList(cllx,ztlx,name,bm,zzxs,st,et,pn,ps) {
  return request({
    url: '/system/caigou/list?chulileixing=' + cllx + '&zhutileixing=' + ztlx + '&name=' + name + '&bianma=' + bm + '&zuzhixingshi=' + zzxs + '&startTime=' + st + '&endTime=' + et + '&pageNum=' + pn + '&pageSize=' + ps,
    method: 'get'
  })
}

// 添加
export function addcaigouList(data) {
  return request({
    url: '/system/caigou',
    method: 'post',
    data
  })
}

// 查询单条
export function getcaigouOne(id) {
  return request({
    url: '/system/caigou/' + id,
    method: 'get'
  })
}

// 修改
export function editcaigouList(data) {
  return request({
    url: '/system/caigou',
    method: 'put',
    data
  })
}

// 删除
export function detcaigouOne(id) {
  return request({
    url: '/system/caigou/' + id,
    method: 'delete'
  })
}
